package com.cool.dao;

import com.cool.entity.Parkinglot;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface ParkinglotMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Parkinglot record);

    int insertSelective(Parkinglot record);

    Parkinglot selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Parkinglot record);

    int updateByPrimaryKey(Parkinglot record);

    ArrayList<Parkinglot> selectAll();

    int addSurplus(Parkinglot record);

    int subSurplus(Parkinglot record);

    Parkinglot selectByName(String name);
}